package com.yl.chainStore.pojo.vo.customer

import com.yl.common.annotation.NoArg

@NoArg
class CustomerInfoAssociatedUpdateVo (
	val id:Long,

	var associatedName:String = "",
		){
	var associatedNameShow:List<String>?
		get() {
			val split = associatedName.split(",")
			val re = mutableListOf<String>()
			for (s in split) {
				if (s.isEmpty()) {
					continue
				}
				re.add(s)
			}
			return re
		}
		set(value) {
			val str = StringBuffer()
			if (!value.isNullOrEmpty()) {
				for (i in value) {
					str.append("$i,")
				}
			}
			val toString = str.toString()
			if(toString.isNotEmpty()){
				associatedName = toString.substring(0,toString.length-1)
			}

		}
}

